package com.hopu.v1.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author: YwaiX
 * @Version: 1.0
 * @Date: Created in 2024-10-12 09:04:58
 * @Description:
 */
@Data
public class StudentLeaveVo {
	/**
	 * 主键ID，唯一标识
	 */
	private Integer id;
	
	/**
	 * 学生ID，关联学生信息表
	 */
	private Integer studentId;
	
	
	/**
	 * 请假开始时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime startTime;
	
	/**
	 * 请假结束时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private LocalDateTime endTime;
	
	/**
	 * 请假类型：1病假,2事假,3婚假,4其他
	 */
	private Integer leaveType;
	
	/**
	 * 请假原因
	 */
	private String reason;
	
	/**
	 * 请假状态：0未审批，1审批通过，2审批驳回
	 */
	private Integer status;
	
	
	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createdAt;
	
	/**
	 * 更新时间
	 */
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updatedAt;
	
	private Integer staffId;
	private String staffName;
	private Integer staffStatus;
	private Integer teacherId;
	private String teacherName;
	private Integer teacherStatus;
}
